<template>
    <div class="userBox">
    <div v-if="!getuser" shadow="always">
 
        <router-link :to="{name:'login' }" class="btn btn-info">
      <img
        width="30"
        src="https://cdn-hterobot.oss-cn-qingdao.aliyuncs.com/vue/public/forum/80e0a7176c643ec9a01e245f092df0fb.jpg"
        class="image"
      >
        </router-link>

    </div>
    <div v-else shadow="always">
      <img width="30" :src="getuser.headimg" class="image">
    </div>
  </div>
</template>
<script>
    import { mapGetters } from "vuex";
export default {
  computed: mapGetters(["getuser"])
};
</script>
<style scoped>
    
</style>